import { createRouter, createWebHistory } from "vue-router";

const routes = [
  {
    path: "/", //  作品详情页
    component: () => import("@/views/index.vue"),
  },
  {
    path: "/works/add", //  作品详情页
    name: "workAdd",
    component: () => import("@/views/worksAdd.vue"),
  },
  {
    path: "/works/naming", //  命名作品页面
    component: () => import("@/views/worksNaming.vue"),
  },
  {
    path: "/pageSet",
    component: () => import("@/views/pageSet.vue"),
  },
  {
    path: "/pageSorting",
    component: () => import("@/views/pageSorting.vue"),
  },
  {
    path: "/preview",
    component: () => import("@/views/preview.vue"),
  },
  {
    path: "/soundRecording",
    component: () => import("@/views/soundRecording.vue"),
  },
  {
    path: "/selectMusic",
    component: () => import("@/views/selectMusic.vue"),
  },
  {
    path: "/musicList",
    component: () => import("@/views/musicList.vue"),
  },
  {
    path: "/addBotton",
    component: () => import("@/views/addBotton.vue"),
  },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
